package com.ruoyi.goodsInfo.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * goodsInfo对象 goods
 *
 * @author ruoyi
 * @date 2024-01-08
 */
@TableName(resultMap = "com.ruoyi.goodsInfo.mapper.GoodsMapper.GoodsResult")
@Data
public class Goods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品名称
     */
    @Excel(name = "商品名称")
    private String goodsName;

    /**
     * 图片地址（数组）
     */
//            @Excel(name = "图片地址", readConverterExp = "数=组")
    private String goodsPictureUrls;

    /**
     * 价格
     */
    @Excel(name = "价格")
    private BigDecimal goodsPrice;

    /**
     * 库存
     */
    @Excel(name = "库存")
    private Long goodsNumber;

    /**
     * 销量
     */
    @Excel(name = "销量")
    private Long salesVolume;

    /**
     * 商品海报
     */
//            @Excel(name = "商品海报")
    private String poster;

    /**
     * $column.columnComment
     */
    private String createPeople;

    /**
     * $column.columnComment
     */
    private Date updatePeople;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private Date createTime;


}
